import React from 'react';

import './index.less';

import { render, connect } from 'src/hrpub/common/frame';

import Layout from 'src/hrpub/common/components/Layout';

import BackBtn from 'src/hrpub/common/components/hr-back';
import MainAction from './actions/main';



const { Header, Content } = Layout;

const Wrapper = render({
    actions: {
        mainAct: MainAction
    }
})(({ props, action, state }) => {
    const { form, emp, editTable } = props;

    return (
        <Layout>
            <Header
                showOrgRefer={false}
                showButtons={false}
                customButton={(() => {
                })()}>
                <BackBtn
                    onClick={action.mainAct.goToBackAddPage}
                    style={{
                        marginTop: '8px'
                    }}
                />
            </Header>
            <Content>
                <span
                    className='basic-infor'
                >
                    {emp.language['gx6008-000225']/** 个人基本信息 */}
                </span>
                {form.createForm('bd_psndoc', {

                })}
                <span
                    className='psninfo-form'
                >
                    {emp.language['gx6008-000226']/** 工作履历 */}
                </span>
                {editTable.createEditTable('hi_psndoc_work', {

                })}
                <span
                    className='psninfo-form'
                >
                    {emp.language['gx6008-000227']/** 学历信息 */}
                </span>
                {editTable.createEditTable('hi_psndoc_edu', {

                })}
                <span
                    className='psninfo-form'
                >
                    {emp.language['gx6008-000228']/** 家庭信息 */}
                </span>
                {editTable.createEditTable('hi_psndoc_family', {

                })}
                <span 
                className='psninfo-form'
               >
                    {emp.language['gx6008-000229']/** 紧急联系人 */}
                </span>
                {editTable.createEditTable('hi_psndoc_linkman', {

                })}
            </Content>
        </Layout>
    );
});

export default connect(Wrapper);